package com.juzipi.demo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "role")
public class Role {

    @TableId(type = IdType.AUTO)
    private Long id;
    private String roleCode;
    private String roleName;

    private Role(){

    }

    private static class RoleInstance{
        private static final Role INSTANCE = new Role();
    }

    public static Role getInstance(){
        return RoleInstance.INSTANCE;
    }
    
}
